package cn.wolfcode.luowowo.article.domain;

import cn.wolfcode.luowowo.common.domain.BaseDomain;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2019/7/19.
 */
@Setter
@Getter
@ToString
public class Question extends BaseDomain {
    public static final int STATE_DISRELEASE = 0;   //未发布的问题
    public static final int STATE_RELEASE = 1;  //已发布的问题
    private UserInfo userInfo;              //发布问题的用户
    private String title;                   //问题标题
    private Destination dest;               //问题中的目的地
    private Integer state = STATE_DISRELEASE;   //问题的状态
    private QuestionTag tag;                //问题的标签
    private String content;                 //问题的内容
    private Date releasetime;               //发布时间
    private Date createtime;               //创建时间
    private boolean isanswer = false;       //是否被回答过
}
